#file_path = "E:\\Study\\Python\\pyStudy\\特殊参数,文件IO\\10_使用with.py"
file_path = "E:/Study/Python/pyStudy/特殊参数,文件IO/10_使用with.py" #\为转义字符，所以绝对路径要改为'\\'或'/'
print(file_path)
with open(file_path,encoding="utf8") as f:
    print(f.read())
    
#相对路径 ./当前目录的，可以省略 ../上一级目录 ../../上上级目录
with open("../python基础知识/01_数据类型.py",encoding="utf8") as f:
    print(f.read()) 
